    import api from "./api.js"
	
	async function login(){
		let code=""
		let obj={}
	   await uni.login().then((res)=>{
			code=res[1].code
			console.log(code)
			obj.code=code
			obj.key="ZHQQ_SM"
	    })
		 return api.login(JSON.stringify(obj))
	}
	export default login